package enumStudy.enums;

/**
 * @author Cheng Jun
 * @version 1.0
 * @date 2019/11/19 14:09
 */
public enum TimeUnitEnum {

    /**
     * 春夏秋冬
     */
    YEAR(1, "年"),
    MONTH(2, "月"),
    DAY(3, "日");


    private int code;

    private String chineseName;

    TimeUnitEnum(int code, String chineseName) {
        this.code = code;
        this.chineseName = chineseName;
    }

    public int getCode() {
        return code;
    }

    public String getChineseName() {
        return chineseName;
    }
}
